<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::group('index', function () {
	Route::get('tuxing','index/yzm');
	//获取短信证码
	Route::get('sms','index/sms_yzm');
// 	Route::get('email','index/email_yzm');
	Route::get('reg','index/reg');
// 	Route::get('suiji','index/suiji_yzm');
	Route::get('big','index/big');
	Route::get('version','index/version');
	Route::get('explain','index/explain');
});

Route::post("reg","reg/reg");//注册

Route::post("login","login/login");//登录

Route::get("logout","login/logout");//退出登录

Route::group("coin",function(){//充提币相关
	Route::get('config', 'coin/config');//提币配置
	Route::get('address','coin/address');//获取充值地址
	Route::get('withdraw','coin/withdraw');//提币记录
	Route::get('recharge','coin/recharge');//充值记录
	Route::get('purchase','coin/purchase');//
	Route::get('reward','coin/reward');//个人投资收益
	Route::get('recommend','coin/recommend');//推荐奖励记录
	Route::get('big_reward','coin/big_reward');//大奖记录
	Route::get('big','coin/big');//大奖记录

	Route::post('carry','coin/carry');//提币
});


Route::group("activity",function(){//活动信息相关
	Route::get('details', 'activity/details');//活动详情
	Route::get('index','activity/index');//活动列表

	Route::post('participate','activity/participate');//参与活动
});

Route::group("user",function(){//活动信息相关
	Route::get('index','user/index');//获取用户基本消息
	Route::get('binding_google', 'user/binding_google');//获取谷歌验证码
	Route::get('check_google','user/check_google');//校验谷歌验证码
	Route::get('my_balance','user/my_balance');//获取用户资产
	Route::get('transductive','user/transductive');//获取用户直推
	
	Route::get('notice','user/notice');//资讯列表
	Route::get('notice_details','user/notice_details');//获取资讯详情

	Route::post('reset_password','user/reset_password');//修改登录密码
	Route::post('reset_pay_password','user/reset_pay_password');//修改支付密码
});


Route::group("timing",function (){
//   "start_act"
    Route::get("start_act","timing/start_act");//自动开启活动
    Route::get("user","timing/user");//自动发放奖励
    Route::get("add_act","timing/add_act");//判断活动是否开启结束
    Route::get("team","timing/team");//新增维护记录
    Route::get("big","timing/big");//新增大奖记录
    Route::get("grand_prix","timing/grand_prix");//新增大奖记录 
    Route::get("act_return","timing/act_return");//不达到三轮所有投资返回 
});